package cn.gok.oa.attendance.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@EqualsAndHashCode
public class ExcelData {

        @ExcelProperty("用户id")
        private Integer userId;
        @ExcelProperty("用户名称")
        private String userName;
        @ExcelProperty("部门名称")
        private String deptName;
        @ExcelProperty("考勤状态")
        private String attendanceStatus;
        @DateTimeFormat(pattern="yyy-MM-dd HH:mm:ss")
        @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
        @ExcelProperty("考勤时间")
        private Date time;
}
